﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{{template "Title" .}} - NETOP</title>
<link href="/css/reset.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/css/style.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/css/bootstrap.min.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<script type=text/javascript src="/js/jquery.js"></script>

<body>
  <div class="navbar-inner">
    <div id="sidebar">
      <div id="profile-links">
          选择语言: <a href="/language">English</a>
          
            <br/>
            欢迎, <B><I>{{.realname | html}}</I></B> 
            <br/>
            <a href="/changepwd">密码</a> | <a href="/logout">登出</a>
      </div>
      <ul id="main-nav">
        {{if .lstOper}}
        <li>
          <a href="#" class="nav-top-item">
              用户操作
          </a>
          <ul>
            {{range .lstOper}}
            {{range $url, $val := .}}
              <li><a href="/{{$url | html}}">{{$val | html}}</a></li>
            {{end}}{{end}}
          </ul>
        </li>
        {{end}}
        {{if .lstQuery}}
        <li>
          <a href="#" class="nav-top-item">
             数据查询
          </a>
          <ul>
            {{range .lstQuery}}
            {{range $url, $val := .}}
              <li><a href="/{{$url | html}}">{{$val | html}}</a></li>
            {{end}}{{end}}
          </ul>
        </li>
        {{end}}
        {{if .lstWono}}
        <li>
          <a href="#" class="nav-top-item">
              工单管理
          </a>
          <ul>
            {{range .lstWono}}
            {{range $url, $val := .}}
              <li><a href="/{{$url | html}}">{{$val | html}}</a></li>
            {{end}}{{end}}
          </ul>
        </li>
        {{end}}
        {{if .lstSets}}
        <li>
          <a href="#" class="nav-top-item">
              系统设置
          </a>
          <ul>
            {{range .lstSets}}
            {{range $url, $val := .}}
              <li><a href="/{{$url | html}}">{{$val | html}}</a></li>
            {{end}}{{end}}
          </ul>
        </li>
        {{end}}
        {{if .lstUser}}
        <li>
          <a href="#" class="nav-top-item">
              用户管理
          </a>
          <ul>
            {{range .lstUser}}
            {{range $url, $val := .}}
              <li><a href="/{{$url | html}}">{{$val | html}}</a></li>
            {{end}}{{end}}
          </ul>
        </li>
        {{end}}
      </ul>
    </div>
  </div>
  <div id="main-content">
    <form id ="rtd-search-form" class="form-horizontal" style="padding:20px -20px 0px 20px; float:right;" action="/search" target="_blank" method="GET">
      <input type="text" name="q" id="q" class="input" style="float:top;" placeholder="Search docs" />
    </form>
    {{template "Content" .}}
    <div id="footer">
      <small style="float:left">
        Developed by Test Department      Rosenberger Asia Pacific Copyright © 2015-2016, All rights reserved.
      </small>
    </div>
  </div>
  <script type="text/javascript">
    $(document).ready(function() {
      $("#q").focusin(function() {
          if($(this).val() =="Search docs"){  
              $(this).val("");
          }
      });
      $("#q").focusout(function() {
          if($(this).val() ==""){ 
              $(this).val("Search docs");
          }
      });
    });
  </script>
</body>
<script type="text/javascript">
  window.onload = function() {
    $("#q").val("Search docs");
  }
</script>
</html>
